<template>
  <div class="demo-title">chexkbox/demo9</div>
  <div class="demo">
    <Checkbox class="checkbox" v-model="checkbox1">
      Custom shape
      <template #icon>
        <Icon name="star11" />
      </template>
      <template #checkedIcon>
        <Icon name="star-fill2" color="#1677ff" />
      </template>
    </Checkbox>
    <Checkbox class="checkbox" v-model="checkbox2" :icon-size="24"> Custom size </Checkbox>
    <Checkbox class="checkbox" v-model="checkbox3">
      Custom icon
      <template #icon>
        <Icon name="checklist" color="#ddd" />
      </template>
      <template #checkedIcon>
        <Icon name="checklist" color="#1677ff" />
      </template>
    </Checkbox>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import Checkbox from '@sscd-mobile/checkbox'
  import Icon from '@sscd-mobile/icon'
  const checkbox1 = ref(true)
  const checkbox2 = ref(true)
  const checkbox3 = ref(false)
</script>

<style lang="less" scoped>
  .demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 12px;
    padding: 12px;
    background-color: #fff;
  }
</style>
